﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin.Master" AutoEventWireup="true" CodeBehind="UserList.aspx.cs" Inherits="HTTT.admin.htuser.UserList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeaderContent" runat="server">
    <title>Danh sách User</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="toolbar-box">
        <div class="m">
            <div id="toolbar" class="toolbar-list">
                <ul>
                    <li id="toolbar-new" class="button">
                        <asp:LinkButton ID="btnAdd" runat="server" OnClick="btnAdd_Click">
                        <span class="icon-32-new"></span>Thêm </asp:LinkButton></li>
                    <li id="toolbar-edit" class="button">
                        <asp:LinkButton ID="btnEdit" runat="server" OnClick="btnEdit_Click">
                       <span class="icon-32-edit"></span>Đặt lại mật khẩu </asp:LinkButton></li>
                    <li class="divider"></li>
                    <li id="toolbar-delete" class="button">
                        <asp:LinkButton ID="btnDelete" runat="server" OnClick="btnDelete_Click">
                       <span class="icon-32-delete"></span>Delete </asp:LinkButton></li>
                    <li class="divider"></li>
                </ul>
                <div class="clr">
                </div>
            </div>
            <div class="pagetitle icon-48-menumgr">
                <h2>
                    Danh sách User</h2>
            </div>
        </div>
    </div>
    <h4 style="color:Red; text-align:center;">
                    <asp:Label ID="lblMsg" runat="server" Text=""></asp:Label></h4>
    <div id="element-box">
        <div class="m">
            <fieldset id="filter-bar">
                <div class="filter-search fltlft">
                    <label for="filter_search" class="filter-search-lbl">
                        Lọc:</label>
                    <asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="Tìm" OnClick="btnSearch_Click" />
                    <asp:Button ID="btnClear" runat="server" Text="Xóa" OnClick="btnClear_Click"/>
                </div>
            </fieldset>
            <div class="clr">
            </div>
            <table class="adminlist">
                <thead>
                    <tr>
                        <th width="1%">
                            <input type="checkbox" onclick="Joomla.checkAll(this)" title="Check All" value=""
                                name="checkall-toggle"/>
                        </th>
                        <th width="16%" class="title">
                            <a title="Click to sort by this column" onclick="" href="#">Username </a>
                        </th>
                        <th class="title">
                            <a title="Click to sort by this column" onclick="" href="#">Email </a>
                        </th>
                        <th class="title">
                            <a title="Click to sort by this column" onclick="" href="#">Enable</a>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="rptData" runat="server">
                        <ItemTemplate>
                            <tr class="row<%# Container.ItemIndex%2 %>">
                                <td class="center">
                                    <asp:CheckBox runat="server" ID="chkItem" value='<%#Eval("Username") %>'/>
                                </td>
                                <td>
                                    <a href='AssignRole.aspx?id=<%#Eval("Username") %>'><%#Eval("Username")%></a>
                                </td>
                                <td>
                                    <a href='AssignRole.aspx?id=<%#Eval("Username") %>'><%#Eval("Email")%></a>
                                </td>
                                <td>
                                   <a class="jgrid" title="Unpublish the menu item alias" href=""><span class='state <%#((bool)Eval("IsApproved"))?"public":"unpublish" %> publish'>
                                    </span></a>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
            <div class="clr">
            </div>
        </div>
    </div>

</asp:Content>
